package com.gao.baseboot.singleton;

import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.context.annotation.*;

/**
 * @author GaoXi
 * @date 2022/2/21 20:08
 */
@Configuration
public class SingletonConfig {
    @Bean
    @Scope(ConfigurableBeanFactory.SCOPE_SINGLETON)
    public SingletonBean singletonBean(){
        return new SingletonBean();
    }
}
